package com.cake.dao;

import java.util.List;

import com.cake.dao.base.IBaseDao;
import com.cake.entity.XxCouponMemberRankKey;

public interface XxCouponMemberRankMapper extends IBaseDao<XxCouponMemberRankKey> {
	
    int deleteByPrimaryKey(XxCouponMemberRankKey key);

    int insert(XxCouponMemberRankKey record);

    int insertSelective(XxCouponMemberRankKey record);
    
    /**
     * 通过优惠券id和会员等级id查询出一行数据
     * @param xxCouponMemberRankKey
     * @return
     */
    XxCouponMemberRankKey selectCouponAndMemberRank(XxCouponMemberRankKey xxCouponMemberRankKey);
    /**
     * 根据优惠券id或者等级id查询出中间表列表数据
     * @param xxCouponMemberRankKey
     * @return
     */
    List<XxCouponMemberRankKey> selectByCouponIdOrMemberRankId(XxCouponMemberRankKey xxCouponMemberRankKey);
    /**
     * 通过优惠券id删除中间表信息
     * @param couponId
     * @return
     */
    Integer deleteByCoupon(Long couponId);
}